'use strict'

class Animal {
     constructor(name){
         this.name = name;
     }
}   
     class Cat extends Animal{
        constructor(name){
            super(name);
    }
        say(){
            console.log('Hello,'+this.name+'!');
        }
    }

    let dog = new Cat('这只猫的名字叫狗');
    console.log(dog.say());

console.log(`浏览器的内宽是: ${window.innerWidth},内高是${window.innerHeight}`);

var a = document.getElementById('drink-steam');
var b = document.getElementsByName('dt');
console.log(b);

var c ='销售的游戏:';
var i;
for(i = 0;i < b.length; i++){
    c = c + b[i].innerHTML + ',';
}
console.log(c);